import Vue from 'vue'
import Router from 'vue-router'
import Login from '../views/login.vue'
import Register from '../views/register.vue'
import Home from '../views/home.vue'
import CardList from '../credit/cardList.vue'
import ApplicationList from '../credit/applicationList.vue'
import ApplicationDetail from '../credit/applicationDetail.vue'
import MyLoad from '../credit/myLoad.vue'
import Accountlnfo from '../person/accountlnfo.vue'
import Add from '../person/add.vue'
import Adress from '../person/adress.vue'
import Commission from '../person/commission.vue'
import Promote from '../person/promote.vue'
import Settlelnfo from '../person/settlelnfo.vue'


Vue.use(Router);

export default new Router({
  routes: [
    {path: '/', name: 'login', component: Login},
    {path: '/login', name: 'login', component: Login},
    {path: '/register', name: 'register', component: Register},
    {path: '/home', name: 'home', component: Home},
    {path: '/cardList', name: 'cardList', component: CardList},
    {path: '/applicationList', name: 'applicationList', component: ApplicationList},
    {path: '/myLoad', name: 'myLoad', component: MyLoad},
    {path: '/accountInfo', name: 'accountInfo', component: Accountlnfo},
    {path: '/add', name: 'add', component: Add},
    {path: '/adress', name: 'adress', component: Adress},
    {path: '/commission', name: 'commission', component: Commission},
    {path: '/promote', name: 'promote', component: Promote},
    {path: '/settleInfo', name: 'settleInfo', component: Settlelnfo},
    {path: '/applicationDetail', name: 'ApplicationDetail', component: ApplicationDetail},
  ]
})
